using DG.Tweening;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Behaviour_Fall : MonoBehaviour
{
    RectTransform rectTransform;
    Vector3 Target_V3;
    public void Fall()
    {
        rectTransform.DOLocalMove(Target_V3,0.5f).SetEase(Ease.OutQuad).
            OnComplete(() =>
            {
                Destroy(rectTransform.gameObject);
            });
    }
    public void Start()
    {
        rectTransform = GetComponent<RectTransform>();
        Target_V3 = rectTransform.anchoredPosition+(Vector2.down*500);
        Fall();
    }
}
